package yuan.deng.service.impl;

import yuan.deng.dao.UserDao;
import yuan.deng.dao.impl.UserDaoImpl;
import yuan.deng.domain.User;
import yuan.deng.service.UserService;

import java.util.List;

public class UserServiceImpl implements UserService {
    UserDao userDao=new UserDaoImpl();
    @Override
    public int addUser(User user) {
        return userDao.addUser(user);
    }

    @Override
    public void delUser(int id) {
        userDao.delUser(id);
    }

    @Override
    public List<User> findAll() {
        return userDao.findAll();
    }
}
